<?php
/**
 * Created by PhpStorm.
 * User: 86188
 * Date: 2021/7/12
 * Time: 21:19
 */

namespace app\admin\controller;


use think\Db;

class Gatevisitor extends Common
{
    public function visitorlist(){
        $com = $this->pidTokenId();
        $where['community_id'] = array('in',$com['community_id']);
        //查询小区信息

        $list = Db::name('gatevisitor')->where($where)->order('id asc')->select();
        $this->assign('list', $list);
        //查询数据条数
        $number =Db::table("gatevisitor")->where($where)->count();
        $this->assign('number', $number);
        return $this->fetch('visitor_list');
    }
}